From 04c5b09794a10bc75c13f9f95a62a4a464c85089 Mon Sep 17 00:00:00 2001 From: "iap10@freefall.cl.cam.ac.uk" Date: Fri, 15 Apr 2005 22:19:51 +0000 Subject: [PATCH] bitkeeper revision 1.1159.258.98 (42603e07B1WGB8z5xrijsm1UIICwKg) [PATCH] add cscope support to xen Makefile Add cscope support to xen Makefile. While at it, refactor a bit so etags, ctags, and cscope use same method to generate file list. Signed-off-by: Chris Wright --- xen/Makefile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/xen/Makefile b/xen/Makefile index b36ed9a43e..15239eb5e1 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -27,7 +27,7 @@ debug: dist: install build: $(TARGET).gz - + install: $(TARGET).gz [ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot $(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot @@ -106,15 +106,18 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s .PHONY: default debug install dist clean delete-unfresh-files TAGS tags SUBDIRS = arch/$(TARGET_ARCH) common drivers +define all_sources + ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \ + find include -type d -name SCCS -prune -o \( -name "asm-*" -o \ + -name config \) -prune -o -name '*.h' -print; \ + find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print ) +endef TAGS: - ( find include/asm-$(TARGET_ARCH) -name '*.h'; \ - find include -type d \( -name "asm-*" -o -name config \) -prune -o \ - -name '*.h' -print; \ - find $(SUBDIRS) -name '*.[ch]' ) | grep -v /SCCS/ | etags - + $(all_sources) | etags - tags: - ( find include/asm-$(TARGET_ARCH) -name '*.h'; \ - find include -type d \( -name "asm-*" -o -name config \) -prune -o \ - -name '*.h' -print; \ - find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags + $(all_sources) | xargs ctags +cscope: + $(all_sources) > cscope.files + cscope -k -b -q MAP: nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map -- 2.30.2